package com.jv.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jv.dao.OrderDao;
import com.jv.entity.Order;
import com.jv.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * orderService订单实现类
 * @author Jv
 * @version 1.0
 */
@Service("orderService")
public class IOrderServiceImpl extends ServiceImpl<OrderDao, Order>implements IOrderService{
    @Autowired
    private OrderDao orderDao;

    @Override
    public List<Order> list(HashMap<String, Object> map) {
        return orderDao.list(map);
    }

    @Override
    public Long getTotals(HashMap<String, Object> map) {
        return orderDao.getTotal(map);
    }
}
